export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  viewBtn: true,
  column: [
    {
      type: 'input',
      label: '条形码',
      prop: 'barcode',
      span: 12,
      required: true,
      rules: [
        {
          required: true,
          message: '条形码必须填写'
        }
      ],
      search: true
    },
    {
      type: 'input',
      label: '名称',
      prop: 'name',
      span: 12,
      rules: [
        {
          required: true,
          message: '名称必须填写'
        }
      ],
      required: true,
      search: true
    },
    {
      type: 'input',
      label: '地址',
      search: true,
      prop: 'place',
      span: 24,
      rules: [
        {
          required: true,
          message: '地址必须填写'
        }
      ],
      required: true
    },
    {
      type: 'input',
      label: '计量单位',
      prop: 'unit',
      span: 12,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '计量单位必须填写'
        }
      ]
    },
    {
      type: 'input',
      label: '规格型号',
      search: true,
      prop: 'standard',
      span: 12,
      rules: []
    },
    {
      type: 'number',
      label: '价格',
      prop: 'price',
      span: 12
    },
    {
      type: 'number',
      label: '价格大于',
      prop: 'priceGt',
      search: true,
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'number',
      label: '价格小于',
      prop: 'priceLt',
      search: true,
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '供应商',
      search: true,
      prop: 'supplier',
      span: 12,
      rules: []
    },
    {
      type: 'input',
      label: '品牌',
      prop: 'brand',
      span: 12,
      rules: []
    },
    {
      type: 'input',
      label: '国家',
      prop: 'country',
      span: 12
    }
  ]
}
